package spring.cloud.demo.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import spring.cloud.demo.service.ComputeService;

@RestController
public class ComsumerController {

	@Autowired
	ComputeService computeService;
	
	@RequestMapping(value="/add",method=RequestMethod.GET)
	public String add(){
		return computeService.addService();
	}
}
